Skip to content

Update dependency pytest-rerunfailures to v15 #2241

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 28, 2025

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 25, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
pytest-rerunfailures ==14.0 -> ==15.0 age adoption passing confidence

Release Notes

pytest-dev/pytest-rerunfailures (pytest-rerunfailures)

v15.0

Compare Source

Breaking changes
++++++++++++++++

  • Drop support for Python 3.8.

  • Drop support for pytest < 7.4.

Features
++++++++

  • Fix compatibility with pytest 8.2.
    (#&#8203;267 <https://github.com/pytest-dev/pytest-rerunfailures/issues/267>_)

  • Add support for pytest 8.2, 8.3.

  • Add --fail-on-flaky option to fail the test run with custom exit code
    when test passed on rerun.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link

netlify bot commented Mar 25, 2025

Deploy Preview for selenium-dev ready!

Name Link
🔨 Latest commit aac22ec
🔍 Latest deploy log https://app.netlify.com/sites/selenium-dev/deploys/67e6726332762f0008715710
😎 Deploy Preview https://deploy-preview-2241--selenium-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

qodo-merge-pro bot commented Mar 25, 2025

CI Feedback 🧐

(Feedback updated until commit 0d01e85)

A test triggered by this PR failed. Here is an AI-generated analysis of the failure:

Action: tests (windows, stable, 3.9)

Failed stage: Run tests [❌]

Failed test name: tests/bidi/cdp/test_network.py

Failure summary:

The action failed because of an import error in the test file tests/bidi/cdp/test_network.py.

Specifically, at line 5 of this file, there's an attempt to import:
from
selenium.webdriver.common.devtools.v131.network import Headers


The error is: ModuleNotFoundError: No module named 'selenium.webdriver.common.devtools.v131'

This suggests that either:
1. The selenium package installed doesn't include the v131 devtools
module
2. The test is trying to use a newer version of devtools than what's available in the
installed selenium package

Relevant error logs:
1:  ##[group]Operating System
2:  Microsoft Windows Server 2022
...

301:  Version: 11.0.26+4
302:  Path: C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\11.0.26-4\x64
303:  ##[endgroup]
304:  Creating settings.xml with server-id: github
305:  Writing to C:\Users\runneradmin\.m2\settings.xml
306:  ##[group]Run nick-invision/[email protected]
307:  with:
308:  timeout_minutes: 60
309:  max_attempts: 3
310:  command: cd examples/python
311:  pytest --reruns 3
312:  
313:  retry_wait_seconds: 10
314:  polling_interval_seconds: 1
315:  warning_on_retry: true
316:  continue_on_error: false
317:  env:
...

319:  GITHUB_TOKEN: ***
320:  GH_TOKEN: ***
321:  pythonLocation: C:\hostedtoolcache\windows\Python\3.9.13\x64
322:  PKG_CONFIG_PATH: C:\hostedtoolcache\windows\Python\3.9.13\x64/lib/pkgconfig
323:  Python_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.9.13\x64
324:  Python2_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.9.13\x64
325:  Python3_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.9.13\x64
326:  JAVA_HOME: C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\11.0.26-4\x64
327:  JAVA_HOME_11_X64: C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\11.0.26-4\x64
328:  ##[endgroup]
329:  ##[group]Attempt 1
330:  ============================= test session starts =============================
331:  platform win32 -- Python 3.9.13, pytest-8.3.5, pluggy-1.5.0
332:  rootdir: D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python
333:  plugins: rerunfailures-15.0, trio-0.8.0
334:  collected 158 items / 1 error
335:  =================================== ERRORS ====================================
336:  _______________ ERROR collecting tests/bidi/cdp/test_network.py _______________
337:  ImportError while importing test module 'D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python\tests\bidi\cdp\test_network.py'.
338:  Hint: make sure your test modules/packages have valid Python names.
339:  Traceback:
340:  C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\importlib\__init__.py:127: in import_module
341:  return _bootstrap._gcd_import(name[level:], package, level)
342:  tests\bidi\cdp\test_network.py:5: in <module>
343:  from selenium.webdriver.common.devtools.v131.network import Headers
344:  E   ModuleNotFoundError: No module named 'selenium.webdriver.common.devtools.v131'
345:  ============================== warnings summary ===============================
346:  tests\bidi\test_bidi_logging.py:6
347:  D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python\tests\bidi\test_bidi_logging.py:6: PytestUnknownMarkWarning: Unknown pytest.mark.driver_type - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
348:  @pytest.mark.driver_type("bidi")
349:  tests\bidi\test_bidi_logging.py:18
350:  D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python\tests\bidi\test_bidi_logging.py:18: PytestUnknownMarkWarning: Unknown pytest.mark.driver_type - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
351:  @pytest.mark.driver_type("bidi")
352:  tests\bidi\test_bidi_logging.py:30
353:  D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python\tests\bidi\test_bidi_logging.py:30: PytestUnknownMarkWarning: Unknown pytest.mark.driver_type - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
354:  @pytest.mark.driver_type("bidi")
355:  tests\bidi\test_bidi_logging.py:42
356:  D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python\tests\bidi\test_bidi_logging.py:42: PytestUnknownMarkWarning: Unknown pytest.mark.driver_type - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
357:  @pytest.mark.driver_type("bidi")
358:  -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
359:  =========================== short test summary info ===========================
360:  ERROR tests/bidi/cdp/test_network.py
361:  !!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
362:  ======================== 4 warnings, 1 error in 41.44s ========================
363:  ##[warning]Attempt 1 failed. Reason: Child_process exited with error code 1
364:  ##[endgroup]
365:  ##[group]Attempt 2
366:  ============================= test session starts =============================
367:  platform win32 -- Python 3.9.13, pytest-8.3.5, pluggy-1.5.0
368:  rootdir: D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python
369:  plugins: rerunfailures-15.0, trio-0.8.0
370:  collected 158 items / 1 error
371:  =================================== ERRORS ====================================
372:  _______________ ERROR collecting tests/bidi/cdp/test_network.py _______________
373:  ImportError while importing test module 'D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python\tests\bidi\cdp\test_network.py'.
374:  Hint: make sure your test modules/packages have valid Python names.
375:  Traceback:
376:  C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\importlib\__init__.py:127: in import_module
377:  return _bootstrap._gcd_import(name[level:], package, level)
378:  tests\bidi\cdp\test_network.py:5: in <module>
379:  from selenium.webdriver.common.devtools.v131.network import Headers
380:  E   ModuleNotFoundError: No module named 'selenium.webdriver.common.devtools.v131'
381:  ============================== warnings summary ===============================
382:  tests\bidi\test_bidi_logging.py:6
383:  D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python\tests\bidi\test_bidi_logging.py:6: PytestUnknownMarkWarning: Unknown pytest.mark.driver_type - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
384:  @pytest.mark.driver_type("bidi")
385:  tests\bidi\test_bidi_logging.py:18
386:  D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python\tests\bidi\test_bidi_logging.py:18: PytestUnknownMarkWarning: Unknown pytest.mark.driver_type - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
387:  @pytest.mark.driver_type("bidi")
388:  tests\bidi\test_bidi_logging.py:30
389:  D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python\tests\bidi\test_bidi_logging.py:30: PytestUnknownMarkWarning: Unknown pytest.mark.driver_type - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
390:  @pytest.mark.driver_type("bidi")
391:  tests\bidi\test_bidi_logging.py:42
392:  D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python\tests\bidi\test_bidi_logging.py:42: PytestUnknownMarkWarning: Unknown pytest.mark.driver_type - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
393:  @pytest.mark.driver_type("bidi")
394:  -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
395:  =========================== short test summary info ===========================
396:  ERROR tests/bidi/cdp/test_network.py
397:  !!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
398:  ======================== 4 warnings, 1 error in 10.32s ========================
399:  ##[warning]Attempt 2 failed. Reason: Child_process exited with error code 1
400:  ##[endgroup]
401:  ##[group]Attempt 3
402:  ============================= test session starts =============================
403:  platform win32 -- Python 3.9.13, pytest-8.3.5, pluggy-1.5.0
404:  rootdir: D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python
405:  plugins: rerunfailures-15.0, trio-0.8.0
406:  collected 158 items / 1 error
407:  =================================== ERRORS ====================================
408:  _______________ ERROR collecting tests/bidi/cdp/test_network.py _______________
409:  ImportError while importing test module 'D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python\tests\bidi\cdp\test_network.py'.
410:  Hint: make sure your test modules/packages have valid Python names.
411:  Traceback:
412:  C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\importlib\__init__.py:127: in import_module
413:  return _bootstrap._gcd_import(name[level:], package, level)
414:  tests\bidi\cdp\test_network.py:5: in <module>
415:  from selenium.webdriver.common.devtools.v131.network import Headers
416:  E   ModuleNotFoundError: No module named 'selenium.webdriver.common.devtools.v131'
417:  ============================== warnings summary ===============================
418:  tests\bidi\test_bidi_logging.py:6
419:  D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python\tests\bidi\test_bidi_logging.py:6: PytestUnknownMarkWarning: Unknown pytest.mark.driver_type - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
420:  @pytest.mark.driver_type("bidi")
421:  tests\bidi\test_bidi_logging.py:18
422:  D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python\tests\bidi\test_bidi_logging.py:18: PytestUnknownMarkWarning: Unknown pytest.mark.driver_type - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
423:  @pytest.mark.driver_type("bidi")
424:  tests\bidi\test_bidi_logging.py:30
425:  D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python\tests\bidi\test_bidi_logging.py:30: PytestUnknownMarkWarning: Unknown pytest.mark.driver_type - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
426:  @pytest.mark.driver_type("bidi")
427:  tests\bidi\test_bidi_logging.py:42
428:  D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python\tests\bidi\test_bidi_logging.py:42: PytestUnknownMarkWarning: Unknown pytest.mark.driver_type - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
429:  @pytest.mark.driver_type("bidi")
430:  -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
431:  =========================== short test summary info ===========================
432:  ERROR tests/bidi/cdp/test_network.py
433:  !!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
434:  ======================== 4 warnings, 1 error in 8.56s =========================
435:  ##[endgroup]
436:  ##[error]Final attempt failed. Child_process exited with error code 1
437:  Post job cleanup.

Copy link
Contributor Author

renovate bot commented Mar 28, 2025

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

Copy link
Member

@harsha509 harsha509 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@harsha509 harsha509 merged commit 14b1cc6 into trunk Mar 28, 2025
12 checks passed
@harsha509 harsha509 deleted the renovate/pytest-rerunfailures-15.x branch March 28, 2025 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant